import config from "@/config"
import http from "@/utils/request"

export default {
	getGoodsSizeCateList: {
        lists:{
            url: `${config.API_URL}/adminapi/shop.shopGoodsSizeCate/lists`,
            name: "获取商品类别列表",
            // get: async function(){
            //     return await http.get(this.url);
            // }
            get: async function(data={}){
				return await http.get(this.url, data);
			}
        },
        add: {
			url: `${config.API_URL}/adminapi/shop.shopGoodsSizeCate/add`,
			name: "添加商品类别",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        edit: {
			url: `${config.API_URL}/adminapi/shop.shopGoodsSizeCate/edit`,
			name: "编辑商品类别",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        delete: {
			url: `${config.API_URL}/adminapi/shop.shopGoodsSizeCate/delete`,
			name: "删除商品类别",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
    getGoodsLocation:{
        lists:{
            url: `${config.API_URL}/adminapi/shop.shopGoodsLocation/lists`,
            name: "获取商品部位列表",
            get: async function(data={}){
				return await http.get(this.url, data);
			}
        },
        add: {
			url: `${config.API_URL}/adminapi/shop.shopGoodsLocation/add`,
			name: "添加商品部位",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        edit: {
			url: `${config.API_URL}/adminapi/shop.shopGoodsLocation/edit`,
			name: "编辑商品部位",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        delete: {
			url: `${config.API_URL}/adminapi/shop.shopGoodsLocation/delete`,
			name: "删除商品部位",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
    },
    getshopGoodsStyle:{
        lists:{
            url: `${config.API_URL}/adminapi/shop.shopGoodsStyle/lists`,
            name: "获取商品款式列表",
            get: async function(data={}){
				return await http.get(this.url, data);
			}
        },
        add: {
			url: `${config.API_URL}/adminapi/shop.shopGoodsStyle/add`,
			name: "添加商品款式",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        edit: {
			url: `${config.API_URL}/adminapi/shop.shopGoodsStyle/edit`,
			name: "编辑商品款式",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        delete: {
			url: `${config.API_URL}/adminapi/shop.shopGoodsStyle/delete`,
			name: "删除商品款式",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
    },

}
